package com.hummingbird.portal.service;

import com.hummingbird.portal.dto.AnswerDTO;
import com.hummingbird.portal.pojo.Answer;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.List;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author -1E18
 * @since 2024-09-22
 */
public interface IAnswerService extends IService<Answer> {
    Answer saveAnswer(AnswerDTO answerDTO, String username);

    List<Answer> getAnswersByQuestionId(Integer questionId);
}
